package com.example.booksshop.mapper;

import com.example.booksshop.entity.Book;
import com.example.booksshop.entity.BookCategory;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xuan 2021/9/15
 */
@Repository
public interface BookMapper {
    void bookInsert(String bookname, String author, Integer cid);

    List<BookCategory> showBooks();

    BookCategory selectBook(String bookname);

    void deleteBook(String bookname);

    List<BookCategory> categoryBook(String category);

    void updateBook(Book book);
}
